// 创建类组件模板代码
import React,{useEffect} from "react";
import Homey from "./homey";
import {connect} from 'react-redux'
import { withRouter,useLocation } from 'react-router-dom'
const Home = (props) => {
    // const location = useLocation()
    // const user = location.state
    // const addUserList = (user)=>{
    //     localStorage.setItem('user',JSON.stringify(user))
    // }
    // useEffect(() => {
    //     addUserList(user)
    // }, []);
    return (
        <div>
            <Homey></Homey>
        </div>
    )
}
export default withRouter(Home)
